package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class RoutineType {

    private int beginIndex;
    private int endIndex;
    private boolean routine;
    private boolean function;
    private boolean procedure;
    private boolean instanceMethod;
    private boolean staticMethod;
    private boolean constructorMethod;
    private boolean method;

    public RoutineType(int beginIndex,
                       int endIndex,
                       boolean routine,
                       boolean function,
                       boolean procedure,
                       boolean instanceMethod,
                       boolean staticMethod,
                       boolean constructorMethod,
                       boolean method) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.routine = routine;
        this.function = function;
        this.procedure = procedure;
        this.instanceMethod = instanceMethod;
        this.staticMethod = staticMethod;
        this.constructorMethod = constructorMethod;
        this.method = method;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isRoutine() {
        return routine;
    }

    public boolean isFunction() {
        return function;
    }

    public boolean isProcedure() {
        return procedure;
    }

    public boolean isInstanceMethod() {
        return instanceMethod;
    }

    public boolean isStaticMethod() {
        return staticMethod;
    }

    public boolean isConstructorMethod() {
        return constructorMethod;
    }

    public boolean isMethod() {
        return method;
    }

}
